import request from '@/config/axios'

/**
 * 上传分片
 * @param data
 */
export const index = async () => {
  return request.get({url: '/adv/search/index'})
}

/**
 * 获取资源库分类
 * @param code
 */
export const classify = async (field: string, code: string, params) => {
  return request.post({url: '/adv/search/classify/' + field + '/' + code, data: params})
}

export const label = async (field: string, code: string, params) => {
  return request.post({url: '/adv/search/label/' + field + '/' + code, data: params})
}

export const know = async (params) => {
  return request.post({url: '/adv/search/know', data: params})
}

export const select = async (params) => {
  return request.post({url: '/adv/search/select/', data: params})
}

